package zsw.Demo1;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Teacher teacher1 = new Teacher(001,"王成刚","男","nothing",0,39);
        Teacher teacher2 =new Teacher(002,"李春梅","女","nothing",0,35);
        Student student1 = new Student(2021310111,"张之巅","男","nothing",0,"大三");
        Student student2 = new Student(2021310222,"薇薇安","女","nothing",0,"大三");
        Course course1= new Course(001,"离散数学","综2904","上午8：00","nothing",0,0);
        Course course2= new Course(002,"雅思初级英语","教307","下午3：30","nothing",0,0);
        System.out.println(" | 欢迎来到选课系统 按任意键开始 | ");
        Scanner input1=new Scanner(System.in);
        String c1=input1.next();
        while(1==1) {
            System.out.println("按任意键会返回菜单| 1。老师开课 | 2。学生选课 | 3.学生退课 |4。查看课表 | 5。结束 |按任意键会返回菜单");
            Scanner input2=new Scanner(System.in);
            int c2=input2.nextInt();
            if(c2==1){
                teacher1.tchoice(teacher1,teacher2,course1,course2);
            }
            if(c2==2){
                student1.choice(student1,student2,course1,course2);
            }
            if(c2==3){
                student1.nochoice(student1,student2,course1,course2);
            }
            if(c2==4){
                course1.Timetable(student1,student2,course1,course2);
            }
            if(c2==5){
                break;
            }
        }
    }
}





